using Core;

namespace g_gongjianta
{
    public class BulletMainComponent : UnitComponent<Bullet>, ILifeCycle
    {
        public bool IsComplete { get; private set; }

        public override void Awake()
        {
            base.Awake();
        }

        public override void Dispose()
        {
            if (IsDisposed) return;
            InstanceId = 0;
            Unit.Dispose();
            
            base.Dispose();
            
            log.err("BulletMainComponent::Dispose()");
        }

        public void Start()
        {
            log.err("BulletMainComponent::Start()");
        }

        public void Tick() { }

        public void Finish()
        {
            log.err("BulletMainComponent::Finish()");
        }

        public void Interrupt()
        {
            IsComplete = true;
            log.err("BulletMainComponent::Interrupt()");
        }
    }
}